home *** CD-ROM | disk | FTP | other *** search
/ The Best of MacTutor - S…e Code for Volumes 1 to 5 / The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin / Source Code / #27 (Dec 87) / c daisy printer driver / dialogs.r < prev    next >
Text File  |  1987-10-24  |  4KB  |  328 lines

  1. *Style and job dialogs for Daisy printer driver
  2. *Chooser interface dialog
  3. *Settings, strings, resource file BNDL, ICN#, and FREF
  4.  
  5. src:Printer:dialogs.rsrc
  6. ????????
  7.  
  8. Type DLOG
  9. ,-8191
  10. Job
  11. 50 20 136 493
  12. Invisible NoGoAway
  13. 1 ;; procID
  14. 1 ;; refCon
  15. -8191
  16.  
  17. Type DITL
  18. ,-8191
  19. 14
  20.  
  21. BtnItem        ;; 1
  22. 8 321 28 381
  23. OK
  24.  
  25. BtnItem        ;; 2
  26. 9 395 29 455
  27. Cancel
  28.  
  29. StatText Disabled    ;; 3
  30. 9 6 24 145
  31. Daisy
  32.  
  33. StatText Disabled    ;; 4
  34. 30 5 46 89
  35. Page Range:
  36.  
  37. RadioItem            ;; 5
  38. 30 93 45 138
  39. All
  40.  
  41. RadioItem            ;; 6
  42. 30 140 46 200
  43. From:
  44.  
  45. EditText Disabled    ;; 7
  46. 30 205 46 237
  47.  
  48.  
  49. StatText Disabled    ;; 8
  50. 30 242 46 270
  51. To:
  52.  
  53. EditText Disabled    ;; 9
  54. 30 272 46 304
  55.  
  56.  
  57. StatText Disabled    ;; 10
  58. 55 5 71 89
  59. Copies:
  60.  
  61. EditText Disabled    ;; 11
  62. 55 95 71 127
  63. 1
  64.  
  65. StatText Disabled    ;; 12
  66. 55 145 71 200
  67. Feed:
  68.  
  69. RadioItem            ;; 13
  70. 55 205 70 303
  71. Continuous
  72.  
  73. RadioItem            ;; 14
  74. 55 305 71 425
  75. Sheet Feed
  76.  
  77. Type DITL
  78. Printer Dialog Template,-4080
  79. 21
  80.  
  81. *   1
  82. BtnItem Enabled
  83. 224 103 240 173
  84. Save
  85.  
  86. *   2
  87. StatText Enabled
  88. 149 7 165 120
  89. Bottom of page
  90.  
  91. *   3
  92. StatText Disabled
  93. 6 91 23 219
  94. Printer Port Setup
  95.  
  96. *   4
  97. StatText Disabled
  98. 30 6 46 51
  99. Port:
  100.  
  101. *   5
  102. RadioItem Enabled
  103. 30 57 46 157
  104. Modem Port
  105.  
  106. *   6
  107. RadioItem Enabled
  108. 30 165 46 265
  109. Printer Port
  110.  
  111. *   7
  112. StatText Disabled
  113. 57 6 73 81
  114. Baud Rate:
  115.  
  116. *   8
  117. BtnItem Enabled
  118. 57 98 73 143
  119. runtime
  120.  
  121. *   9
  122. StatText Disabled
  123. 58 153 74 300
  124. (Hit me for more…)
  125.  
  126. *   10
  127. StatText Disabled
  128. 83 5 99 122
  129. Line Terminator
  130.  
  131. *   11
  132. EditText Enabled
  133. 83 128 99 320
  134. runtime
  135.  
  136. *   12
  137. EditText Enabled
  138. 105 128 121 320
  139. runtime
  140.  
  141. *   13
  142. EditText Enabled
  143. 127 128 143 320
  144. runtime
  145.  
  146. *   14
  147. EditText Enabled
  148. 149 128 165 320
  149. runtime
  150.  
  151. *   15
  152. EditText Enabled
  153. 171 128 187 320
  154. runtime
  155.  
  156. *   16
  157. StatText Disabled
  158. 105 6 121 123
  159. Initialize
  160.  
  161. *   17
  162. StatText Disabled
  163. 127 7 143 124
  164. Top of page
  165.  
  166. *   18
  167. StatText Enabled
  168. 171 8 187 121
  169. End of file
  170.  
  171. *    19
  172. RadioItem Enabled 
  173. 197 8 213 121
  174. CTS
  175.  
  176. *   20
  177. RadioItem Enabled
  178. 197 165 213 265
  179. XOn/XOff
  180.  
  181. *   21
  182. BtnItem Enabled
  183. 224 183 240 253
  184. Cancel
  185.  
  186. Type DLOG
  187. Printer Config Box,-4080
  188. Serial Port Configuration
  189. 40 80 296 424
  190. Invisible NoGoAway
  191. 1 ;; procID
  192. 0 ;; refCon
  193. -4080
  194.  
  195. Type STR 
  196. Right Button,-4092    ;; Chooser right button title
  197. Setup…
  198.  
  199. Type STR 
  200. List label,-4091    ;; Chooser list label
  201. Serial Printer Driver
  202.  
  203. Type Stng = GNRL
  204. Printer Settings,-8192
  205. .H
  206. 0001 0002 0000 0000     ;; Printer port, 1200 baud, no Xon/Xoff
  207.  
  208. Type STR#        ;; String list for EOL, EOP, BOP strings
  209. Printer control strings,-4080    ;; Tandy DMP-110
  210. 5
  211. ^M            ;; End of line
  212. ^[^W            ;; Initialize printer
  213.             ;; beginning of page
  214. ^L            ;; end of page
  215.             ;; end of document
  216.  
  217. Type BNDL
  218. ,128
  219. DasY 0
  220. ICN#
  221. 0 128
  222. FREF
  223. 0 128
  224.  
  225. Type DasY = STR 
  226. ,0
  227. Version 0.000001
  228.  
  229. Type FREF
  230. ,128
  231. PRER 0 
  232.  
  233. Type ICN# = GNRL
  234. ICN#,128
  235. .H
  236. 00000000 7FFFFFFE 40000002 40000002
  237. 40003802 40004582 4001C642 40024442
  238. 40042842 40021F82 4003FE42 40043D42
  239. 40025C82 40019442 40009242 40009382
  240. 40387202 403C4C02 401C8002 40038002
  241. 4001C002 4002F002 40047002 40087002
  242. 40080002 43FFC002 42004002 41FF8002
  243. 40810002 40420002 7FFFFFFE 00000000
  244. 00000000 7FFFFFFE 7FFFFFFE 7FFFFFFE
  245. 7FFFFFFE 7FFFFFFE 7FFFFFFE 7FFFFFFE
  246. 7FFFFFFE 7FFFFFFE 7FFFFFFE 7FFFFFFE
  247. 7FFFFFFE 7FFFFFFE 7FFFFFFE 7FFFFFFE
  248. 7FFFFFFE 7FFFFFFE 7FFFFFFE 7FFFFFFE
  249. 7FFFFFFE 7FFFFFFE 7FFFFFFE 7FFFFFFE
  250. 7FFFFFFE 7FFFFFFE 7FFFFFFE 7FFFFFFE
  251. 7FFFFFFE 7FFFFFFE 7FFFFFFE 00000000
  252.  
  253. * Printer style dialog template
  254. Type DITL
  255. ,-8192
  256. 8
  257.  
  258. BtnItem            ;;1
  259. 10 319 30 379
  260. OK
  261.  
  262. BtnItem            ;;2
  263. 10 390 30 450
  264. Cancel
  265.  
  266. StatText Disabled    ;;3
  267. 10 5 30 308
  268. Daisy: 8.5" by 11"
  269.  
  270. RadioItem Enabled    ;;4
  271. 70 5 90 100
  272. 10 cpi
  273.  
  274. RadioItem Enabled    ;;5
  275. 70 120 90 180
  276. 12 cpi
  277.  
  278. RadioItem Enabled    ;;6
  279. 70 200 90 260
  280. 15 cpi
  281.  
  282. RadioItem Enabled    ;;7
  283. 40 5 60 150
  284. Straight up
  285.  
  286. RadioItem Enabled    ;;8
  287. 40 155 60 300
  288. Sideways
  289.  
  290. * Style dialog box
  291. Type DLOG
  292. ,-8192
  293. Stl
  294. 31 20 120 488
  295. Invisible NoGoAway
  296. 1 ;; procID
  297. 1 ;; refCon
  298. -8192
  299.  
  300. Type DLOG
  301. Next Page Box,-8193
  302. Next Page
  303. 48 51 100 300
  304. Visible NoGoAway
  305. 1 ;; procID
  306. 0 ;; refCon
  307. -8193
  308.  
  309. Type DITL
  310. Next Page Template,-8193
  311. 3
  312.  
  313. *   1
  314. BtnItem Enabled
  315. 30 60 46 140
  316. Done
  317.  
  318. *   2
  319. BtnItem Enabled
  320. 30 160 46 240
  321. Stop
  322.  
  323. *   3
  324. StatText
  325. 8 8 24 292
  326. Daisy: Insert Next Sheet
  327.  
  328.